home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / exams / vewd / vewdback.bat < prev    next >
DOS Batch File  |  1995-04-07  |  1KB  |  42 lines

  1. @echo off
  2. REM Command file to backup important VEWD data.
  3. REM Invoked with: filename [code] [session date] [session id] [current time]
  4. REM Where code is 0 for autobackup, 1 for user partial, 2 for user full
  5. REM Session date is YYMMDD and time is HHMM
  6.  
  7. REM Drive and directory path to back up the data to...
  8. set safeplace=K:\
  9.  
  10. if "%1" == "0" goto autosave
  11. if "%1" == "1" goto partial
  12. if "%1" == "2" goto full
  13. echo "Unknown command code " %1
  14. goto fini
  15.  
  16. :autosave
  17. REM Quickest.  The data you really don't want to loose.  No index files
  18. REM saved, nor the session database file. 
  19.  
  20. xcopy attve.dat        %safeplace% /v    >NUL:
  21. xcopy veinfo.dat    %safeplace% /v    >NUL:
  22. xcopy veinfo.mem    %safeplace% /v    >NUL:
  23. xcopy victims.dat    %safeplace% /v    >NUL:
  24. xcopy victims.mem    %safeplace% /v    >NUL:
  25. goto fini
  26.  
  27. REM User selected session data backup.  Do index files as well.
  28. :partial
  29. xcopy attve.*        %safeplace% /v    >NUL:
  30. xcopy veinfo.*        %safeplace% /v    >NUL:
  31. xcopy victims.*        %safeplace% /v    >NUL:
  32. goto fini
  33.  
  34. REM The Whole thing.  Zip it up first to keep it small.
  35. :full
  36. pkzip %2 *.dat *.mem *.k*        >NUL:
  37. xcopy %2.zip         %safeplace% /v    >NUL:
  38. goto fini
  39.  
  40. :fini
  41.  
  42.